<template>
	<div class="app-container">
		<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="72px" class="queryForms">
			<el-form-item label="记录编号" prop="militaryInspectionNumber">
				<el-input v-model="queryParams.militaryInspectionNumber" placeholder="请输入记录编号" clearable @keyup.enter.native="handleQuery" maxlength="20" show-word-limit />
			</el-form-item>
			<el-form-item label="产品名称" prop="productName">
				<el-input v-model="queryParams.productName" placeholder="请输入产品名称" clearable @keyup.enter.native="handleQuery" maxlength="20" show-word-limit />
			</el-form-item>
			<el-form-item label="产品型号" prop="productModel">
				<el-input v-model="queryParams.productModel" placeholder="请输入产品型号" clearable @keyup.enter.native="handleQuery" maxlength="20" show-word-limit />
			</el-form-item>
			<el-form-item label="产品编号" prop="productNumber">
				<el-input v-model="queryParams.productNumber" placeholder="请输入产品编号" clearable @keyup.enter.native="handleQuery" maxlength="20" show-word-limit />
			</el-form-item>
			<el-form-item label="军检状态" prop="armyExamineStatus">
				<el-select v-model="queryParams.armyExamineStatus" placeholder="请选择">
					<el-option v-for="dict in dict.type.army_state2" :key="dict.value" :label="dict.label" :value="dict.value"> </el-option>
				</el-select>
			</el-form-item>
			<el-form-item>
				<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
				<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
			</el-form-item>
		</el-form>

		<el-row :gutter="10" class="mb8">
			<el-col :span="1.5">
				<el-button type="primary" size="mini" @click="handleCheck()" v-hasPermi="['army:armylist:check']">合格</el-button>
			</el-col>
			<el-col :span="1.5">
				<el-button type="primary" size="mini" @click="handleCheck3()" v-hasPermi="['army:armylist:check3']">厂内合格</el-button>
			</el-col>
			<!-- <el-col :span="1.5"><div style="line-height: 30px">生成表单</div></el-col>
			<el-col :span="1.5">
				<el-select v-model="testval">
					<el-option :key="1" label="生产记录" :value="1" />
					<el-option :key="2" label="设备维修记录" :value="2" />
				</el-select>
			</el-col> -->
			<right-toolbar @changeTableData="changeTableData" :showSearch.sync="showSearch" menuNames="armylist2" @queryTable="handleQuery" :columns.sync="columns" perm="army:armylist:index"></right-toolbar>
		</el-row>
		<!--   -->
		<div :class="sidebar.opened && eleTabTop <= 85 ? 'eleTab' : !sidebar.opened && eleTabTop <= 85 ? 'eleTabs' : ''" class="informationTab" ref="eleTab">
			<el-table :row-class-name="row_class_name" @mousedown.native="mousedownTable" @row-click="row_click" @cell-mouse-enter="cell_mouse_enter" @cell-mouse-leave="cell_mouse_leave" @mouseup.native="mouseupTable" @mouseleave.native="mouseupTable" ref="table" v-loading="loading" :data="TArmyExamineList" @selection-change="handleSelectionChange" row-key="id" lazy :load="loadListDes" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" border height="100%">
				<el-table-column type="selection" width="55" align="center" />
				<el-table-column label="序号" align="center" type="index" width="55">
					           <template slot-scope="scope">
						<div>{{ scope.row.sort }}</div>
						           </template
					>
				</el-table-column>

				<el-table-column label="记录编号" prop="militaryInspectionNumber" min-width="150" :show-overflow-tooltip="true" v-if="columns[0].visible" />
				<el-table-column label="返修任务单" prop="repairNumber" min-width="150" :show-overflow-tooltip="true" v-if="columns[1].visible" />
				<el-table-column label="产品代表" prop="productRepresentativeName" min-width="150" :show-overflow-tooltip="true" v-if="columns[2].visible" />
				<el-table-column label="用户" prop="clientName" min-width="150" :show-overflow-tooltip="true" v-if="columns[3].visible" />
				<el-table-column label="产品名称" prop="productName" min-width="150" :show-overflow-tooltip="true" v-if="columns[4].visible" />
				<el-table-column label="产品型号" prop="productModel" min-width="150" :show-overflow-tooltip="true" v-if="columns[5].visible" />
				<el-table-column label="产品编号" prop="productNumber" min-width="150" :show-overflow-tooltip="true" v-if="columns[6].visible" />
				<el-table-column label="军检状态" prop="armyExamineStatus" min-width="150" :show-overflow-tooltip="true" align="center" v-if="columns[7].visible">
					<template slot-scope="scope">
						<dict-tag :options="dict.type.army_state2" :value="scope.row.armyExamineStatus" />
					</template>
				</el-table-column>
				<el-table-column label="备注" prop="remark" min-width="150" :show-overflow-tooltip="true" v-if="columns[8].visible" />
				<el-table-column label="操作" class-name="small-padding fixed-width" width="300px" fixed="right">
					<template slot-scope="scope">
						<section v-if="scope.row.hasChildrens">
							<!-- <el-button size="mini" type="text" icon="el-icon-edit" @click="handleline(scope.row)" v-hasPermi="['army:armylist:files']">在线预览</el-button> -->
							<el-button size="mini" type="text" icon="el-icon-edit" @click="handleJump(scope.row)" v-hasPermi="['army:armylist:files']">军检资料</el-button>
							<el-button size="mini" type="text" icon="el-icon-edit" @click="handleView(scope.row)" v-hasPermi="['army:armylist:view']">预览资料</el-button>
							<el-button size="mini" type="text" icon="el-icon-wallet" @click="handleAnnex(scope.row)" v-hasPermi="['army:armylist:annex']">附件</el-button>
							<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['army:armylist:remove']">删除</el-button>
						</section>
						<section v-else>
							<el-button size="mini" type="text" icon="el-icon-check" @click="handleCheck(scope.row)" v-if="scope.row.armyExamineStatus == '1' || scope.row.armyExamineStatus == '6'" v-hasPermi="['army:armylist:check']">合格</el-button>
							<el-button size="mini" type="text" icon="el-icon-close" @click="handleCheck1(scope.row)" v-if="scope.row.armyExamineStatus == '1' || scope.row.armyExamineStatus == '6'" v-hasPermi="['army:armylist:check2']">不合格</el-button>
							<el-button size="mini" type="text" icon="el-icon-check" @click="handleCheck3(scope.row)" v-if="scope.row.armyExamineStatus == '1'" v-hasPermi="['army:armylist:check3']">厂内合格</el-button>
						</section>
					</template>
				</el-table-column>
			</el-table>
		</div>

		<pagination menuNames="Pagination4" v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />

		<!-- 核验弹框 -->
		<el-dialog title="核验合格" :visible.sync="open" width="900px" append-to-body v-dialogDrag>
			<el-form ref="form" :model="form" :rules="rules" label-width="80px">
				<el-form-item label="备注" prop="remark">
					<el-input type="textarea" v-model="form.remark" placeholder="请输入备注" maxlength="100" show-word-limit />
				</el-form-item>
			</el-form>

			<div slot="footer" class="dialog-footer">
				<el-button type="primary" @click="submitForm(2)">确定</el-button>
				<el-button @click="cancel()">取消</el-button>
				<!-- <el-button @click="submitForm(3)">不合格</el-button> -->
			</div>
		</el-dialog>

		<!-- 核验不合格弹框 -->
		<el-dialog title="核验不合格" :visible.sync="unqualifiedOpen" width="1200px" append-to-body v-dialogDrag>
			<div class="unbox">
				<div class="unitem">
					<div class="item1">序号</div>
					<div class="item2">检查项目</div>
					<div class="item3">技术要求及合格判定依据</div>
					<div class="item4">检查结果</div>
					<div class="item5">备注</div>
					<div class="item6"></div>
				</div>
				<div class="unitem" v-for="(item, index) in unqualifiedList" :key="index">
					<div class="item1">{{ index + 1 }}</div>
					<div class="item2">
						<el-input v-model="item.projectName" placeholder="" maxlength="20" show-word-limit></el-input>
					</div>
					<div class="item3">
						<el-input v-model="item.basis" placeholder="" maxlength="100" show-word-limit></el-input>
					</div>
					<div class="item4">
						<el-input v-model="item.results" placeholder="" maxlength="20" show-word-limit></el-input>
					</div>
					<div class="item5">
						<el-input v-model="item.remark" placeholder="" maxlength="20" show-word-limit></el-input>
					</div>
					<div class="item6">
						<el-button type="primary" v-if="index == 0" @click="addOne">创建</el-button>
						<el-button v-else @click="delOne(index)">删除</el-button>
					</div>
				</div>
			</div>
			<div slot="footer" class="dialog-footer">
				<el-button type="primary" @click="submitUnqualified(3)">确定</el-button>
				<el-button @click="cancelUnqualified()">取消</el-button>
			</div>
		</el-dialog>

		<el-dialog title="在线" :visible.sync="lineopen" width="900px" append-to-body v-dialogDrag>
			<div class="qualityManual-container-office">
				<only-office :option="option" />
			</div>

			<div slot="footer" class="dialog-footer">
				<!-- <el-button type="primary" @click="getContent()">数据</el-button> -->
			</div>
		</el-dialog>
	</div>
</template>

<script>
import { getcolumn } from "@/api/selectList"
import { previewArmy, listTArmyExamine, listTArmyExamineChild, delTArmyExamine, submitTArmyExamine, submitTArmyExamineUnqualified } from "@/api/army/armylist"
import { mapGetters } from "vuex"
export default {
	name: "Armylist",
	dicts: ["army_state2"],
	data() {
		return {
			openOffice: false,
			//参考vabOnlyOffice组件参数配置
			option: {
				key: "",
				url: "",
				isEdit: "",
				fileType: "",
				title: "",
				lang: "zh-CN",
				isPrint: "",
				user: { id: null, name: "" }
			},
			lineopen: false,
			isMousedownTable: false, //是否按下表格
			currentEnterRow: null, //当前移入的行数据
			eleTabTop: 0, //表格容器距浏览器顶部距离
			// 遮罩层
			loading: true,
			// 选中数组
			ids: [],
			// 选中数组列表
			rows: [],
			// 非单个禁用
			single: true,
			// 非多个禁用
			multiple: true,
			// 显示搜索条件
			showSearch: true,
			// 总条数
			total: 0,
			// 军检记录表格数据
			TArmyExamineList: [],
			// 弹出层标题
			title: "",
			// 是否显示弹出层
			open: false,
			// 查询参数
			queryParams: {
				pageNum: 1,
				pageSize: 10,
				militaryInspectionNumber: undefined,
				armyExamineStatus: undefined,
				productName: undefined,
				productModel: undefined,
				productNumber: undefined
			},
			// 表单参数
			form: {},
			// 表单校验
			rules: {
				delFlag: [{ required: true, message: "删除标志不能为空", trigger: "blur" }]
			},
			testval: undefined,
			// 更新树刷新
			treeMap: new Map(),
			// 不合格
			unqualifiedOpen: false,
			unqualifiedFrom: {},
			unqualifiedList: [],
			treetablekey: Math.random(),
			// 列信息
			columns: [
				{ key: 0, label: `记录编号`, visible: true },
				{ key: 1, label: `返修任务单`, visible: true },
				{ key: 2, label: `产品代表`, visible: true },
				{ key: 3, label: `用户`, visible: true },
				{ key: 4, label: `产品名称`, visible: true },
				{ key: 5, label: `产品型号`, visible: true },
				{ key: 6, label: `产品编号`, visible: true },
				{ key: 7, label: `军检状态`, visible: true },
				{ key: 8, label: `备注`, visible: true }
			],
			isSpecific: false
		}
	},
	computed: {
		...mapGetters(["sidebar"])
	},
	created() {
		this.getSize()
	},
	mounted() {
		// 滚动条的获取
		this.handleScrollx()
		window.addEventListener("scroll", this.handleScrollx, true)
	},
	activated() {
		this.getSize()
		//获取表格容器距页面头部的距离
		this.handleScrollx()
	},
	destroyed() {
		window.removeEventListener("scroll", this.handleScrollx, true)
	},
	methods: {
		getSize() {
			getcolumn({ pageName: "Pagination4" }).then(response => {
				this.queryParams.pageSize = response.data.length ? (response.data[0].limit ? response.data[0].limit : 10) : 10
				this.getList()
			})
		},
		modifyTem(row) {
			this.getFile(row.id)
		},
		getFile(id) {
			this.openOffice = true
			// getAction('/file/selectById', { id: this.id }).then(res => {
			this.option.isEdit = true
			this.option.lang = "zh-CN"
			this.option.url = "http://192.168.59.164:8080/notemode/notemodeltypeenum/download/" + id
			this.option.title = "笔录模板"
			this.option.fileType = "docx"
			this.option.isPrint = false
			this.option.user = { id: 12, name: "张三" }
			this.option.editUrl = "http://192.168.59.164:8080/notemode/notemodeltypeenum/save/" + id
			// this,option.key="11111"
			// })
		},
		handleline() {
			this.lineopen = true
		},
		handleView(row) {
			const loading = this.$loading({
				lock: true,
				text: "Loading",
				spinner: "el-icon-loading",
				background: "rgba(0, 0, 0, 0.7)"
			})
			previewArmy(row.id).then(res => {
				loading.close()
				window.open(res.url)
			}).finally(res => {
				loading.close()
			})
		},
		//获取表格容器距页面头部的距离
		handleScrollx() {
			this.eleTabTop = this.$refs.eleTab.getBoundingClientRect().top
		},
		addOne() {
			if (this.unqualifiedList[this.unqualifiedList.length - 1].results && this.unqualifiedList[this.unqualifiedList.length - 1].projectName && this.unqualifiedList[this.unqualifiedList.length - 1].basis) {
				this.unqualifiedList.push({
					projectName: undefined,
					results: undefined,
					basis: undefined,
					remark: undefined
				})
			} else {
				this.$modal.msgError("请先将数据填写完整")
			}
		},
		delOne(index) {
			this.unqualifiedList.splice(index, 1)
			if (this.unqualifiedList.length == 0) {
				this.unqualifiedList.push({
					projectName: undefined,
					results: undefined,
					basis: undefined,
					remark: undefined
				})
			}
		},
		/** 查询军检记录列表 */
		getList() {
			this.loading = true
			listTArmyExamine(this.queryParams).then(response => {
				response.rows.forEach((item, index) => {
					item.hasChildrens = true
					item.sort = index + 1
					item.children.forEach((items, indexs) => {
						items.sort = indexs + 1
						items.hasChildrens = false
						items.id = "c" + items.id
					})
				})
				this.TArmyExamineList = response.rows
				this.total = response.total
				this.loading = false
			})
		},

		// 获取列表子菜单
		async loadListDes(tree, treeNode, resolve) {
			if (!this.treeMap.has(tree.id)) {
				this.treeMap.set(tree.id, {
					treeNode,
					resolve
				})
			}
			let data = {
				id: tree.id,
				productName: this.queryParams.productName,
				productModel: this.queryParams.productModel,
				productNumber: this.queryParams.productNumber,
				armyExamineStatus: this.queryParams.militaryInspectionNumber,
				militaryInspectionNumber: this.queryParams.militaryInspectionNumber
			}
			let ret = await listTArmyExamineChild(data)
			ret.rows.forEach((item, index) => {
				// 父子id会冲突
				item.id = "c" + item.id
				item.sort = index + 1
			})
			resolve(ret.rows)
		},
		// 取消按钮
		cancel() {
			this.open = false
			this.reset()
		},
		// 表单重置
		reset() {
			this.form = {
				data: undefined,
				remark: undefined
			}
			this.resetForm("form")
		},
		/** 搜索按钮操作 */
		handleQuery() {
			this.queryParams.pageNum = 1
			this.getList()
			this.treetablekey = Math.random()
		},
		/** 重置按钮操作 */
		resetQuery() {
			this.resetForm("queryForm")
			this.handleQuery()
		},
		// 表格按下
		mousedownTable(event) {
			const target = event.target
			// 判断target的class属性确定是否点击在复选框上
			if (target.classList.contains("el-checkbox__inner")) {
				this.currentEnterRow && this.$refs.table.toggleRowSelection(this.currentEnterRow)
				this.isMousedownTable = true
			}
		},
		// 单击表格行
		row_click(row, column, event) {
			if (column && column.label == "操作") {
				return
			} else {
				this.$refs.table.toggleRowSelection(row)
				let flag = this.ids.some(item => item == row.id)
				if (row.hasChildrens) {
					row.children.forEach(items => {
						if (flag) {
							this.$refs.table.toggleRowSelection(items, true)
						}
					})
				}
			}
		},
		changeTableData() {
			this.$nextTick(() => {
				this.$refs.table.doLayout()
			})
		},

		// 进入单元格
		cell_mouse_enter(row, column, cell, event) {
			this.isMousedownTable && this.$refs.table.toggleRowSelection(row)
			this.currentEnterRow = row
		},
		// 离开单元格
		cell_mouse_leave(row, column, cell, event) {
			this.currentEnterRow = null
		},
		// 鼠标弹起或者离开表格
		mouseupTable(d) {
			this.isMousedownTable = false
		},
		// 表格每行样式
		row_class_name({ row, rowIndex }) {
			return this.rows.find(v => v.id == row.id) ? "selected" : ""
		},
		// 多选框选中数据
		handleSelectionChange(selection) {
			this.ids = selection.map(item => item.id)
			this.rows = selection
			this.single = selection.length !== 1
			this.multiple = !selection.length
		},
		/** 新增按钮操作 */
		handleAdd() {
			this.reset()
			this.open = true
			this.title = "添加军检记录"
		},

		handleCheck3(row) {
			// if (row == undefined) {
			// 	let checkp = this.rows.every(item => item.armyExamineStatus == "1")
			// 	console.log(checkp)
			// 	if (!checkp) {
			// 		this.$modal.msg("只能选择待核验产品")
			// 		return false
			// 	}
			// }
			this.handleCheck(row)
			this.isSpecific = true
		},

		/** 核验操作 */
		async handleCheck(row = undefined) {
			console.log(this.ids, "this.ids")
			this.isSpecific = false
			this.isOne = false // 重置标记
			let data = {
				armyExamineProductPaVoList: []
			}
			if (!row) {
				// 多条记录
				if (this.ids.length == 0) {
					this.$modal.msg("请选择产品")
					return false
				} else {
					// 判断是否选中了父级返修任务
					let checkp = this.rows.find(item => {
						return Number(item.id) > 0
					})
					if (checkp) {
						this.$modal.msg("只能选择子类产品")
						return false
					}

					// let checkps = this.rows.every(item => item.armyExamineStatus == "1" || item.armyExamineStatus == "6")
					// if (!checkps) {
					// 	this.$modal.msg("只能选择待核验产品")
					// 	return false
					// }
					this.ids.forEach(item => {
						data.armyExamineProductPaVoList.push({
							id: item.replace("c", ""),
							armyExamineStatus: undefined,
							remark: undefined
						})
					})
				}
			} else {
				// 单条记录
				this.isOne = true
				let id = row.id.replace("c", "")
				data.armyExamineProductPaVoList.push({
					id: id,
					armyExamineStatus: undefined,
					remark: undefined
				})
			}
			this.reset()
			this.open = true
			this.title = "核验"
			this.form.data = data
		},
		// 核验不合格
		handleCheck1(row) {
			this.isSpecific = false
			// 不合格先不做
			this.unqualifiedFrom = {
				armyExamineId: row.armyExamineId
			}
			this.unqualifiedList = [{}]
			this.unqualifiedFrom.armyExamineProductId = row.id.replace("c", "")
			this.unqualifiedOpen = true
		},
		// 修改submitForm方法
		submitForm(armyExamineStatus) {
			armyExamineStatus = this.isSpecific ? 6 : armyExamineStatus
			let data = this.form.data
			data.armyExamineProductPaVoList.forEach(item => {
				item.armyExamineStatus = armyExamineStatus
				item.remark = this.form.remark
			})
			const loading = this.$loading({
				lock: true,
				text: "Loading",
				spinner: "el-icon-loading",
				background: "rgba(0, 0, 0, 0.7)"
			})
			submitTArmyExamine(this.form.data).then(response => {
				this.$modal.msgSuccess("操作成功")
				this.open = false
				loading.close()
				// 只刷新受影响的行数据
				if (this.isOne) {
					// 如果是单条记录操作，找到对应的行并更新
					const rowId = data.armyExamineProductPaVoList[0].id
					this.updateRowStatus(rowId, armyExamineStatus)
				} else {
					// 如果是批量操作，更新所有选中的行
					this.ids.forEach(id => {
						const rowId = id.replace("c", "")
						this.updateRowStatus(rowId, armyExamineStatus)
					})
				}

				// 不再需要完全刷新列表
				// this.getList()
			}).finally(()=>{
        	loading.close()
      })
		},
		// 新增方法：更新行状态
		updateRowStatus(rowId, status) {
			// 在表格数据中查找对应的行
			for (let parent of this.TArmyExamineList) {
				const childIndex = parent.children.findIndex(child => child.id === `c${rowId}`)
				if (childIndex !== -1) {
					// 更新状态
					parent.children[childIndex].armyExamineStatus = status.toString()

					// 如果使用了Vue.set确保响应式更新
					this.$set(parent.children, childIndex, { ...parent.children[childIndex] })

					// 如果表格使用了expand-row-attributes可能需要手动触发更新
					if (this.$refs.table) {
						this.$refs.table.toggleRowExpansion(parent, false)
						this.$nextTick(() => {
							this.$refs.table.toggleRowExpansion(parent, true)
						})
					}
					break
				}
			}
		},
		/** 提交按钮 */
		// submitForm(armyExamineStatus) {
		// 	armyExamineStatus = this.isSpecific ? 6 : armyExamineStatus
		// 	let data = this.form.data
		// 	data.armyExamineProductPaVoList.forEach(item => {
		// 		item.armyExamineStatus = armyExamineStatus
		// 		item.remark = this.form.remark
		// 	})
		// 	submitTArmyExamine(this.form.data).then(response => {
		// 		this.$modal.msgSuccess("操作成功")
		// 		this.open = false
		// 		this.getList()
		// 		// 刷新树
		// 		this.treeMap.forEach((item, idx) => {
		// 			this.loadListDes({ id: idx }, item.treeNode, item.resolve)
		// 		})
		// 	})
		// },
		// 取消合格弹框
		cancel() {
			this.open = false
		},
		// 提交不合格数据
		submitUnqualified() {
			let check = false
			this.unqualifiedList.forEach(item => {
				if (!item.projectName || !item.results || !item.basis) {
					check = true
				}
				item.armyExamineProductId = this.unqualifiedFrom.armyExamineProductId
			})
			if (check) {
				this.$modal.msgError("请将数据填写完整")
				return false
			}
			this.unqualifiedFrom.armyExamineProductId = this.unqualifiedFrom.armyExamineProductId
			this.unqualifiedFrom.tarmyExamineBelowList = this.unqualifiedList
       const loading = this.$loading({
          lock: true,
          text: 'Loading',
          spinner: 'el-icon-loading',
          background: 'rgba(0, 0, 0, 0.7)'
        });
			submitTArmyExamineUnqualified(this.unqualifiedFrom).then(response => {
				this.$modal.msgSuccess("操作成功")
				this.open = false
        loading.close();
				this.getList()
				// 刷新树
				this.treeMap.forEach((item, idx) => {
					this.loadListDes({ id: this.unqualifiedFrom.armyExamineId }, item.treeNode, item.resolve)
				})
			}).finally(()=>{
        loading.close();
      })
			this.unqualifiedOpen = false
		},
		// 取消不合格弹框
		cancelUnqualified() {
			this.unqualifiedOpen = false
		},
		/** 删除按钮操作 */
		handleDelete(row) {
			const ids = row.id || this.ids
			this.$modal
				.confirm("是否确认删除数据项？")
				.then(function () {
					return delTArmyExamine(ids)
				})
				.then(() => {
					this.getList()
					this.$modal.msgSuccess("删除成功")
				})
				.catch(() => {})
		},
		// 跳转到军检资料
		handleJump(row) {
			// let url = "/army/information?id=" + row.id
			let url = `/army/information?id=${row.id}&&type=1`
			this.$router.push(url)
		},
		// 附件
		handleAnnex(row) {
			this.$router.push({
				path: "/attachment/attachmentUpload",
				query: {
					TableId: row.id,
					typeId: 19,
					perm: "army:armylist:annex"
				}
			})
		}
	}
}
</script>

<style lang="scss" scoped>
.qualityManual-container-office {
	width: 100%; /* 确保容器宽度充满整个父元素 */
	height: 600px; /* 根据需要调整高度 */
	overflow: hidden; /* 避免内部内容溢出 */
}
.unbox {
	width: 100%;
	max-height: 480px;
	overflow: auto;
	.unitem {
		display: flex;
		justify-content: space-between;
		width: 100%;
		text-align: center;
		margin-bottom: 10px;
	}

	.item1 {
		width: 8%;
	}
	.item2 {
		width: 16%;
	}
	.item3 {
		width: 20%;
	}
	.item4 {
		width: 20%;
	}
	.item5 {
		width: 20%;
	}
	.item6 {
		width: 10%;
	}
}
::v-deep .el-table__fixed-header-wrapper .fixed-width {
	width: 300px !important;
}
</style>
